home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010921-20020314
/
000301_lvm@cowlitz.com_Mon Jan 21 15:46:04 EST 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
50 lines
Article: 13136 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!btnet-peer0!btnet-peer!btnet!feeder.qis.net!sn-xit-02!supernews.com!postnews1.google.com!not-for-mail
From: lvm@cowlitz.com (Larry Mann)
Newsgroups: comp.protocols.kermit.misc
Subject: Using redirection when starting K95
Date: 21 Jan 2002 12:00:33 -0800
Organization: http://groups.google.com/
Lines: 32
Message-ID: <3d44a7c4.0201211200.7a8591b0@posting.google.com>
NNTP-Posting-Host: 12.230.243.34
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1011643233 19019 127.0.0.1 (21 Jan 2002 20:00:33 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 21 Jan 2002 20:00:33 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13136
Hello,
Some years ago I wrote several Unix shell scripts that called Kermit
using redirection for both providing input from a Kermit script and
any response output to a file. This was done with HP-UX and C-Kermit
communicating with a remote Kermit server.
I now need to move these scripts from HP-UX and C-Kermit to Windows
2000 Server and K95. I have installed a Unix shell on W2K and all is
fine except the shell script lines that call Kermit, K95, do not seem
to accept redirection, for example:
k95 < in.ksc > out.txt
where in.ksc contains and is communicating with a remote Kermit
server:
set line com1
set baud 9600
rem dir c:/temp
This would capture a list of filenames from the remote server into
out.txt for further processing in the shell script.
I understand that I could provide the script name as the first item on
the Kermit command line, such as: k95 in.ksc and that's fine...
but how can I capture the standard output from this script to a file,
out.txt?
I've been away from Kermit for awhile so I may be missing the obvious,
but any help or advise would be appreciated. Thanks,
Larry Mann
(I attempted to post a similar message earlier today it did appear to
get listed so I am trying again)